package com.design.visitor;

/**
 * @author ytj
 * @date 2024/11/28 13:25
 */
public class Student extends User{

    public Student(String name,String identity,String className){
        super(name, identity, className);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visitor(this);
    }

    /**
     * 学生成绩排名
     * */
    public int ranking(){
        return (int)(Math.random()*100);
    }
}
